/******************************************************************************
*@file  : main.c
*@brief : This file provides I2C Slave Demos
*@ver   : 1.0.0
*@date  : 2022.10.20
******************************************************************************/

#include "app.h"  

/*********************************************************************************
* Function    : main
* Description : The application entry point.
* Input       : None
* Output      : None
**********************************************************************************/
int main(void)  
{
	HAL_Init();    
    SystemClock_Config(SYSCLK_180M_SRC_RC64M, RCC_PCLK1_DIV_1, RCC_PCLK2_DIV_1);  
    HAL_Init_Ex();   
    
	BSP_UART_Init(UART1); 
    
    BSP_PB_Init();
	
	printfS("----------------------------------------------------------------------------------------\r\n");
    
	/*  
        TEST_SLAVE_POLLING 
        TEST_SLAVE_INTERRUPT 
    */
	I2C_Slave_Test(TEST_SLAVE_POLLING);
	
	while(1)
	{
        
	}	
}


